﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PSE.Framework.Communication.Messages;

namespace PSE.Framework.Communication.Adapters.File
{
    public class RecordInfo
    {
        private RecordInfo()
        {
        }

        public RecordInfo(MessageInfo msg)
        {
            if (msg != null)
            {
                this._action = msg.Action;
                this._record = msg.Message;
            }
        }

        private string _action = null;
        /// <summary>
        /// Action da mensagem
        /// </summary>
        public string Action
        {
            get { return _action; }
        }

        private object _record;
        /// <summary>
        /// Mensagem
        /// </summary>
        public object Record
        {
            get { return _record; }
        }
    }
}
